MsgN("--\tLoading devices:")

--load all client files
for _, file in pairs(file.FindInLua("mdrs_devices/*.lua")) do
	MsgN("--\t\t" .. file .. " loaded.")

	if SERVER then include("mdrs_devices/" .. file) end

	IncludeClientFile( "mdrs_devices/" .. file )
end

--[[
add later

RS.AddDevice({
	header = "Cooking",
	tool = {"Devices"},
	category = "Stoves",
	status = true,

	name = "Electric Stove",
	desc = "Used to cook food.",
	startsound = "Buttons.snd17",
	stopsound = "Buttons.snd17",
	model = {
		"models/props_c17/furnitureStove001a.mdl",
		"models/props_forest/stove01.mdl",
		"models/props_wasteland/kitchen_stove001a.mdl",
		"models/props_wasteland/kitchen_stove002a.mdl",
		"models/props_furniture/kitchen_oven1.mdl"
	},
	requires = {
		Energy = CONSUME
	},
	BaseClass = {
		Think = function(self)
			self.BaseClass.Think(self)

			MakeFood( self )

			self.Entity:NextThink(CurTime() + 5)
			return true
		end
	}
})

RS.AddDevice({
	header = "Cooking",
	tool = {"Devices"},
	category = "Stoves",
	status = true,

	name = "Stove Oil",
	desc = "Used to cook food.",
	startsound = "Buttons.snd17",
	stopsound = "Buttons.snd17",
	model = {
		"models/props_furniture/kitchen_oven1.mdl"
	},
	requires = {
		Oil = CONSUME
	}
})

RS.AddDevice({
	header = "Cooking",
	tool = {"Devices"},
	category = "Sinks",
	status = true,

	name = "Sink",
	desc = "Used to wash hands.",
	startsound = "Buttons.snd17",
	stopsound = "Buttons.snd17",
	model = {
		"models/props_interiors/SinkKitchen01a.mdl"
	},
	requires = {
		Water = CONSUME
	}
})
]]